﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using H2.NET.Data.Common;
using H2.NET.Web.Pages.SMD.Model;

namespace H2.NET.Web.Pages.SMD.Service
{
    public static class DepositTranService
    {
        public static List<t_smd_DepositTran> FindSmdByDeviceId(int deviceId)
        {
            return
                (t_smd_DepositTran._DeviceID == deviceId).List<t_smd_DepositTran>(Storage.Context3).ToList();
        }

        public static List<t_StoreDepositTran> FindByDeviceId(int deviceId)
        {
            return
                (t_StoreDepositTran._DeviceID == deviceId).List<t_StoreDepositTran>(Storage.Context3).ToList();
        }

        public static List<t_StoreDepositTran> FindByAssId(string assId)
        {
            return (t_StoreDepositTran._AssessmentID == assId).List<t_StoreDepositTran>().ToList();
        }
        public static List<t_StoreDepositTran> FindInAssIds(List<string> assIds)
        {
            return (t_StoreDepositTran._AssessmentID.In(assIds)).List<t_StoreDepositTran>().ToList();
        }
    }
}